# 课程信息类
class CoursePO:
    # 构造函数
    def __init__(self, course_name=None, cat=None, teacher=None):
        self.course_name = course_name
        self.cat = cat
        self.teacher = teacher

    # setter和getter方法s
    def set_course_name(self, course_name):
        self.course_name = course_name

    def get_course_name(self):
        return self.course_name

    def set_cat(self, cat):
        self.cat = cat

    def get_cat(self):
        return self.cat

    def set_teacher(self, teacher):
        self.teacher = teacher

    def get_teacher(self):
        return self.teacher

    # 打印课程信息
    def print_course_info(self):
        print("课程名称：", self.course_name)
        print("课程类别：", self.cat)
        print("授课教师：", self.teacher)
